package com.teangtang.fly.get;

import com.teangtang.fly.entity.City;
import com.teangtang.fly.entity.Province;
import lombok.Data;

@Data
public  class CityWithProvince {
    private Long cityCode;
    private String cityName;
    private Long provinceCode;
    private String provinceName;

    public CityWithProvince(City city, Province province) {
        this.cityCode = city.getCityCode();
        this.cityName = city.getCityName();
        this.provinceCode = province.getProvinceCode();
        this.provinceName = province.getProvinceName();
    }

    // getters and setters
}